<h1>Anos List</h1>

<table>
  <thead>
    <tr>
      <th>Id ano</th>
      <th>Ano</th>
      <th>Eliminar</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($anos as $ano): ?>
    <tr>
      <td><a href="<?php echo url_for('ano/show?id_ano='.$ano->getIdAno()) ?>"><?php echo $ano->getIdAno() ?></a></td>
      <td><?php echo $ano->getNumero() ?></td>
      <td><?php echo link_to('X', 'ano/delete?id_ano='.$ano->getIdAno(), array('method' => 'delete', 'confirm' => '&iquest;Est&aacute; seguro?')) ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('ano/new') ?>">New</a>
